package com.alon.spring01.common.config.pool;

import lombok.extern.slf4j.Slf4j;
import org.springframework.scheduling.annotation.Async;
import org.springframework.stereotype.Component;

/**
 * @program: spring01
 * @description: 保险多线程启动
 * @author: yulongguang
 * @create: 2019-04-22 21:44
 **/
@Slf4j
@Component
public class InsuranceTask {

    @Async("taskExecutor")
    public void doTask(int i) {
        log.info("Task-Native|| 批量新增保险数据"+i+" started.");
    }

}
